//  IDVI 1.0 source copyright 1996 Garth A. Dickie
//
//  This source is free for non-commercial use.  No warranty, etc.
//  Please acknowledge reuse by including the line:
//
//  "Based in part on IDVI 1.0 source copyright 1996 Garth A. Dickie"
//
//  in your documentation and source code.  For commercial use or
//  distribution, please contact the author.  Please also send
//  questions, comments, bug reports, or fixes.
//
//  Best Regards,
//  Garth A. Dickie
//  dickie@elastic.avid.com

package ibook.v10.parameter;

import java.util.Vector;

public class ParameterUnionStub implements ParameterStub {
    Vector          child = new Vector( );

    public void add( ParameterStub child ) {
        this.child.addElement( child );
    }

    public String getParameter( String name ) {
        String result = null;

        for( int i = 0; i < child.size( ) && result == null; ++ i )
            result = ( String ) (( ParameterStub ) child.elementAt( i )).getParameter( name );
        
        return result;
    }
}
